package com.financing.wap.dao.impl;


import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.financing.wap.dto.FpShopInformationDzDTO;
import com.financing.wap.dao.IFpShopInformationDzDao;
import com.financing.wap.common.SqlName;
/**
 * fp_shop_information_dz  
 *  数据访问层实现类
 * @author huqiyun
 *
 */
 
@Repository("fpShopInformationDzDao")
public class FpShopInformationDzDaoImpl extends BaseDaoImpl<FpShopInformationDzDTO, java.lang.Integer> implements IFpShopInformationDzDao {


	@Override
	public int insert(FpShopInformationDzDTO fpShopInformationDz) throws SQLException {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.FpShopInformationDzSql.insert, fpShopInformationDz);
	}

	@Override
	public void update(FpShopInformationDzDTO fpShopInformationDz) throws SQLException {
		this.sqlMapClientTemplate.update(SqlName.FpShopInformationDzSql.update, fpShopInformationDz);
	}

	@Override
	public void updateForce(FpShopInformationDzDTO fpShopInformationDz) throws SQLException {
		this.sqlMapClientTemplate.update(SqlName.FpShopInformationDzSql.updateForce, fpShopInformationDz);
	}

	@Override
	public void delete(Integer id) throws SQLException {
		this.sqlMapClientTemplate.delete(SqlName.FpShopInformationDzSql.delete,id);
	}
	
	@SuppressWarnings("unchecked")	
	@Override
	public List<FpShopInformationDzDTO> queryList(FpShopInformationDzDTO fpShopInformationDz) throws SQLException {
		return this.sqlMapClientTemplate.queryForList(SqlName.FpShopInformationDzSql.queryList, fpShopInformationDz);
	}

	@Override
	public int queryListCount(FpShopInformationDzDTO fpShopInformationDz) throws SQLException {
		return (Integer) this.sqlMapClientTemplate.queryForObject(SqlName.FpShopInformationDzSql.queryListCount, fpShopInformationDz);
	}

	@Override
	public FpShopInformationDzDTO loadById(Integer id) throws SQLException {
		return  (FpShopInformationDzDTO)this.getSqlMapClientTemplate().queryForObject(SqlName.FpShopInformationDzSql.loadById,id);
	}

	@Override
	public Class<FpShopInformationDzDTO> getEntityClass() {
		return FpShopInformationDzDTO.class;
	}
 	
}
